import { createApp } from 'vue'
//css重置
import 'normalize.css'
import './assets/css/index.less'
import App from './App.vue'
import router from './router'
import pinia from './stores'
import registerIcons from './global/register-icon'
//引入报警弹窗的样式
// import 'element-plus/theme-chalk/el-message.css'

const app = createApp(App)

//全局引入 elementPlus  全局注册 会导致包较大
// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// app.use(ElementPlus)

//按需引入elementPlus
// import { ElButton } from 'element-plus'
// app.component(ElButton.name, ElButton)

app.use(registerIcons)
//路由挂载
app.use(router)
//使用pinia
app.use(pinia)

app.mount('#app')
